<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
 <!-- 这里引入导航信息header.tpl -->
 <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>信息查看</title>
<link rel="stylesheet" type="text/css" href="<%=context%>resources/modules/bootstrap/css/plugins/multiselect/multiselect.css" />
</head>

<body class="sub-page">
<div class="modal-content">
    <div class="modal-header">
        <h4 class="modal-title">信息查看</h4>
    </div>
    <div class="modal-body">
        <div class="table-responsive">
            <table class="table table-bordered">
                <colgroup>
                    <col width="20%">
                    <col width="30%">
                    <col width="20%">
                    <col width="30%">
                </colgroup>
                <tbody>
                    <tr>
                        <td>角色名称</td>
                         <td class="white-bg">
                         	<span>${roleVo.roleName}</span>
                        </td>
                        <td>角色类型</td>
                        <td class="white-bg">
                        	<span>${roleVo.roleTypeName}</span>
                        </td>
                     </tr>
                     <tr>
                        <td>员工姓名</td>
                        <td class="white-bg">
                            <c:if test="${!empty roleVo.empsName}">
								<div  style="line-height: 30px">
									<c:forEach items="${roleVo.empsName}" var="vcl">
										<c:if test="${!empty vcl}">
											<span class="text-wrapper">${vcl}</span>
										</c:if>
									</c:forEach>
								</div>
							</c:if>
                        </td>
                        <td>权限类型<span class="text-danger">*</span></td>
                        <td class="white-bg">
	                    	<span >
								<c:if test="${roleVo.authorityType=='1'}">
	                            	<span>普通</span>
	                            </c:if>
	                            <c:if test="${roleVo.authorityType=='2'}">
	                            	<span>特殊</span>
	                            </c:if>
							</span>
                        </td>
                       </tr>
                       <tr>
                        <td>分享权限列表</td>
                        <td colspan="3" class="white-bg">
                        	<c:forEach var="shareItem" items="${roleShareInfo}">
								<div>&nbsp;${shareItem.roleName} &nbsp;</div>
							</c:forEach>
                        </td>
                    </tr>
                    <tr>
                        <td>资源列表</td>
                        <td colspan="3" class="white-bg">
							<div class="clearfix form-multi-col-panel">
								<div class="form-item-group form-horizontal" role="form">
								
									<div class="form-item">
										<span class="form-field">资源名称：</span>
										<span class="form-input"><input type="text" placeholder="资源名称" class="form-control" name="selectedResName" id="selectedResName" ></span>
									</div>
									
									<div class="form-item">
                       					<c:if test="${roleVo.roleType ne '1'}">
											<span class="form-field">项目经理：</span>
											<span class="form-input"><select class="form-control use-select2 multiselct-input" placeholder="项目经理" name='selectedMgrId' id='selectedMgrId'></select></span>
										</c:if>
									</div>
									<div class="form-item"></div>
									<div class="form-item"></div>
									<div class="form-item"></div>
								</div>
								
								<div class="form-action text-right">
									<button class="btn btn-primary" id="queryBtn" name="queryBtn" type="submit" onclick="querySelected(true)">
										<i class="fa fa-search"></i> 查询
									</button>
									<button class="btn btn-outline btn-primary" id="resetBtn" name="resetBtn" type="reset">清空</button>
								</div>
							</div>
								
							<div class="jqGrid_wrapper fullscreen-wrapper">
								<table id="selectedList"></table>
								<div id="selectedPage"></div>
							</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<input type="hidden" id="roleId" value="${roleVo.roleId }"/>
<script type="text/javascript" src="<%=context%>resources/modules/system/sys/privilege.update.js?20171023"></script>
</body>
</html>
